// JavaScript Document
function showTime()
{
    var today = new Date();
    //alert("The time is: " + today.toString());
	var year=today.getYear()<200 ? (today.getYear()+1900):today.getYear();
	var month=today.getMonth()+1;
	if(month<10){month="0"+month;}
	var day=today.getDate();
	if(day<10){day="0"+day;}
	var hour=today.getHours();
	if(minutes<10){minutes="0"+minutes;}
	var minutes=today.getMinutes();
	if(minutes<10){minutes="0"+minutes;}
	var seconds=today.getSeconds();
	if(seconds<10){seconds="0"+seconds;}
	var week='日一二三四五六'.charAt(today.getDay());
	
	var out_s=year+"年"+month+"月"+day+"日"+hour+":"+minutes+":"+seconds+" 星期"+week;
	document.getElementById("index_time").innerHTML=out_s;//today.toLocaleString()+' 星期'+'日一二三四五六'.charAt(today.getDay());
}

function showCurrentTime()
{
	var today = new Date();
	var year=today.getYear()<200 ? (today.getYear()+1900):today.getYear();
	var month=today.getMonth()+1;
	if(month<10){month="0"+month;}
	var day=today.getDate();
	if(day<10){day="0"+day;}
	var week='日一二三四五六'.charAt(today.getDay());
	
	var out_s=year+"年"+month+"月"+day+"日 星期"+week;
	document.getElementById("index_time").innerHTML=out_s;
}